package com.wpj.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_user")
public class User implements Serializable {

  private static final long serialVersionUID = 4290300523376288551L;
  @TableId(type = IdType.AUTO)
  private Integer id;
  private String username;
  private String password;
  private Integer sex;
  private String email;
  @TableField(exist = false)
  private User createUser;

}
